package com.boil.qz.safekavass.model;

/**
 * Created by ChenYong on 2017-04-25.
 * <br>
 * 举报处理流程记录实体类。
 */
public class ReportResRecord {
    /**
     * 举报 ID
     */
    private Long reportId;
    /**
     * 举报处理人 ID
     */
    private Long reportHandlePersonId;
    /**
     * 举报处理人
     */
    private String reportHandlePerson;
    /**
     * 举报结果
     */
    private String reportResult;
    /**
     * 举报处理时间
     */
    private String reportHandleTime;

    /**
     * 默认构造器。
     */
    public ReportResRecord() {
        super();
    }

    public Long getReportId() {
        return reportId;
    }

    public void setReportId(Long reportId) {
        this.reportId = reportId;
    }

    public Long getReportHandlePersonId() {
        return reportHandlePersonId;
    }

    public void setReportHandlePersonId(Long reportHandlePersonId) {
        this.reportHandlePersonId = reportHandlePersonId;
    }

    public String getReportHandlePerson() {
        return reportHandlePerson;
    }

    public void setReportHandlePerson(String reportHandlePerson) {
        this.reportHandlePerson = reportHandlePerson;
    }

    public String getReportResult() {
        return reportResult;
    }

    public void setReportResult(String reportResult) {
        this.reportResult = reportResult;
    }

    public String getReportHandleTime() {
        return reportHandleTime;
    }

    public void setReportHandleTime(String reportHandleTime) {
        this.reportHandleTime = reportHandleTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ReportResRecord that = (ReportResRecord) o;

        if (reportId != null ? !reportId.equals(that.reportId) : that.reportId != null) return false;
        if (reportHandlePersonId != null ? !reportHandlePersonId.equals(that.reportHandlePersonId) : that.reportHandlePersonId != null)
            return false;
        return reportResult != null ? reportResult.equals(that.reportResult) : that.reportResult == null;
    }

    @Override
    public int hashCode() {
        int result = reportId != null ? reportId.hashCode() : 0;
        result = 31 * result + (reportHandlePersonId != null ? reportHandlePersonId.hashCode() : 0);
        result = 31 * result + (reportResult != null ? reportResult.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ReportResRecord{");
        sb.append("reportId=").append(reportId);
        sb.append(", reportHandlePersonId=").append(reportHandlePersonId);
        sb.append(", reportHandlePerson='").append(reportHandlePerson).append('\'');
        sb.append(", reportResult='").append(reportResult).append('\'');
        sb.append(", reportHandleTime='").append(reportHandleTime).append('\'');
        sb.append('}');
        return sb.toString();
    }
}